package com.itheima.service.impl;

import com.itheima.service.HelloService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

@DubboService(version = "2.0")  // 1.创建对象交给ioc容器 2.将此服务注册到nacos中
public class HelloServiceImplPro implements HelloService {

    @Value("${dubbo.protocol.port}")
    private Integer port;

    @Override
    public String sayHello(String name) {
        return "v2.0 hello " + name + "__________" + port;
    }
}
